package com.cloud.netty.ProtocolTcp;

/**
 * @program: netty
 * @description:  协议包
 * @author: Cloud
 * @create: 2022/4/14 15:54:46
 */

public class MessageProtocol {

    // 关键
    private int len;

    private byte[] content;

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public MessageProtocol(int len, byte[] content) {
        this.len = len;
        this.content = content;
    }

    public MessageProtocol() {
    }
}
